import storage from "store";

const state = {
  loginInfo: storage.get("loginInfo") || {}, // 行业种类
};

const mutations = {
  SET_LOGININFO: (state, payload) => {
    state.loginInfo = payload;
    storage.set("loginInfo", payload);
  },

};

const actions = {
  setLoginInfo({ commit }, payload) {
    commit("SET_LOGININFO", payload);
  },
};

export default {
  namespaced: true,
  state,
  mutations,
  actions,
};